<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="java.util.*"%>

<html>
    <head>
        <link href="estilos.css" rel="stylesheet" type="text/css">
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Menu superior</title>
        <SCRIPT LANGUAGE="JavaScript1.2">
            function terminarSesion()
            {
                 answer=confirm('¿Esta seguro de terminar la sesion?')
                 if (answer!=0)
                 {
                     top.location="terminarSesion.jsp"
                     target="_top"
                 }
                 
            }
        </SCRIPT>
    </head>
    <body>
        <%
            // Comprobamos si existe usuario en la sesion
            if (session.getAttribute("login") != null && ((String) session.getAttribute("login")).length() > 0)
            {
        %>
           <table style="font-size:24px;border-spacing:0px;border-collapse:collapse" width="100%">
            <tbody>
             <tr>
                <th align="left"   style="border-bottom-width:2px;border-bottom-style:double"> Gestión remota routers Cisco </th>
                <th align="center" style="border-bottom-width:2px;border-bottom-style:double"> <a style="background:none" href="#" onclick="terminarSesion()"><img src="images/exit2.jpg" style="border:0px;" title="Salir"> </a> </th>
                <th align="right"  style="border-bottom-width:2px;border-bottom-style:double"> <img src="images/logo2.gif" align="right"> </th>
             </tr>
            </tbody>
           </table>
            <%
        }
        else
        {
        %><META HTTP-EQUIV="REFRESH" CONTENT="1;URL=error.jsp">
        <%
        }
        %>
    </body>
</html>
